package com.ea.admin.controller.superAdmin;

import com.ea.common.report.ReportFeign;
import com.ea.common.result.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "超级管理-测试")
@RequestMapping("/admin/super/test")
public class SuperAdminTestController {
    @Autowired
    ReportFeign reportFeign;

    // 删除 face 脏数据
    @GetMapping("/deleteUserFaceDirtyData/{count}")
    public Result<String> deleteUserFaceDirtyData(@PathVariable("count") int count) {
        // 获得当前系统所有的人脸信息
        return reportFeign.deleteUserFaceDirtyData(count);
    }

    @GetMapping("/deleteFaceRegDirtyData/{count}")
    public Result<String> deleteFaceRegDirtyData(@PathVariable("count") int count) {
        // 获得当前系统所有的人脸信息
        return reportFeign.deleteFaceRegDirtyData(count);
    }
}
